//
//  AppDelegate.swift
//  xinlangweibo
//
//  Created by 刘亮 on 15/10/15.
//  Copyright © 2015年 liuliang. All rights reserved.
//


///
import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        
        //如下四句话是实例化一个window,使其能够获取viewController,能够显示出来
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        window?.backgroundColor = UIColor.whiteColor()
        
        window?.rootViewController = MainViewController()
        
        window?.makeKeyAndVisible()
        
        return true
    }

    


}

